package com.itheima.job3;

public class Test {
    public static void main(String[] args) {
        Student stu1 = new Student("张三","男",23);
        Student stu2 =new Student("李四","女",23);
        System.out.println(stu1);
        System.out.println(stu2);
        System.out.println(contrast(stu1,stu2));
    }
    public static boolean contrast(Student s1,Student s2){
        if (s1==null||s2==null){
            return false;
        }else if (s1.equals(s2)){
            return true;
        }
        return false;
    }
}
